home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-09-22 | 4.8 KB | 102 lines | [TEXT/MMCC] |
- • Important Metrowerks/AppsToGo editor change:
-
- Due to how CodeWarrior handles the resource fork of the current project, and how the AppsToGo
- editor used to manage resources, a change had to be made. Since the resource file for the
- project isn’t ever considered part of the running project in CodeWarrior (unlike THINK), it
- was necessary for the framework to place the resource changes in BOTH the running application
- AND the “ copy” version of the resource fork (or application). If this makes no sense, see the
- =AppsToGo Manual document for more detail.
-
- Note that the framework can only propogate the resource change if there is a “ copy” resource
- file, AND that file is not opened already by a resource editor.
-
-
- • Metrowerks/AppsToGo Installation:
-
- 1) Start with a new copy of CodeWarrior CW4.
- 2) Copy the AppsToGo package your machine.
-
- Now that everything is on the same hard disk, you need to first get the AppsToGo header files
- placed correctly and precompiled.
-
- Copy the “DTS.Lib.headers” folder into the CodeWarrior project folder. A good place is the
- “Metrowerks C/C++ ƒ” folder.
-
- Now open the copy of “DTS.Lib.headers” and double-click on “DTS2Headers.project”. Single-click
- on the DTS2Headers entry in the project (so that the precompile menu option is no longer
- grayed out). Precompile. (This will take a while.)
-
- When the precompile finally finishes, save as “DTS2Headers”. The current directory is a fine
- place to save the precompiled headers.
-
- Repeat the precompile process for “DTS2Headers.project”. The “DTS2Headers” are for 68k, and
- the “DTS3Headers” are for PPC.
-
- One this process is done, then the libraries need to be built for both 68k and PPC.
-
-
- To build the libraries, first open the “DTS.Lib” folder. You will find three directories:
-
- DTS1 (THINK)
- DTS2 (MW.68k)
- DTS3 (MW.PPC)
-
- View the window in “View by name” mode. Then single-click on the triangle for “DTS2 (MW.68k)”
- to view the contents in-line. Select the contents, and then drag the selected contents above
- “DTS1 (THINK)” and drop it. This moves the contents of “DTS1 (THINK)” to the same level as all
- of the source files.
-
- If you do not do the above step, when you try to build the libraries, CW will not be able to
- find the source files. The project file needs to be at the same directory level or higher
- than the source files.
-
- Once you have the project files for the libraries placed correctly, just double-click the first
- one and do a command-M to make the library. It will be saved right by the project file. Do
- all of the “DTS2 (MW.68k)” libraries in this fashion.
-
- Once they are all made, you will want to move them into a CW folder for libraries. Inside of
- “Metrowerks C/C++ ƒ:Libraries ƒ”. I create a directory called “DTS2.libraries” and move
- the libraries into this.
-
- Once the libraries are built, you can move the project files back into the “DTS2 (MW.68k)”
- folder. There should be 12 AppsToGo libraries for the 68k side of Metrowerks.
-
- Repeat this process for “DTS3 (MW.PPC)”. You are now ready to build either 68k or PPC
- applications with AppsToGo and Metrowerks. Save the libraries in a folder inside of
- “Metrowerks C/C++ ƒ:Libraries ƒ” called DTS3.libraries. There should only be 11 libraries
- for the PPC side of Metrowerks, since one of the AppsToGo libraries is balloon help support
- for system 6. This is obviously useless on the PPC side.
-
- Now for building the sample applications:
-
- Let's assume that you want to build AppWannabe. Open that folder, but before building,
- you need to set up just one thing.
-
- The .rsrc file is set up for THINK. Leave it this way. Single-click on it, and then duplicate
- it. Rename the copy “AppWannabe.68k copy”. Create another and rename it “AppWannabe.PPC copy”.
- You are now ready to build via the Metrowerks project files that are in the AppWannabe folder.
-
- For any AppsToGo sample application, you will need to do the above .rsrc strategy for
- its .rsrc file.
-
- AppWannabe has one more Metrowerks project file, called AppWannabe.µ.FAT. This is just a sample
- of how to set up a project file for building fat applications. Here's how I created it:
-
- 1) First build AppWannabe.68k.
- 2) Open AppWannabe.68k with ResEdit and change the file type from 'APPL' to 'rsrc'.
- 3) Copy the AppWannabe.µ.PPC project file.
- 4) Remove the "AppWannabe.PPC copy" resource entry.
- 5) Add "AppWannabe.68k" as a resource file in its place.
-
- Now to build a fat application, you just first build the 68k version, and then build the PPC
- version using AppWannabe.µ.FAT. When it comes time to copy the resources, the AppWannabe.68k
- application will be copied in. Note that you only have to change the file type to 'rsrc'
- when you first include AppWannabe.68k into the project file. From then on, it will be treated
- as a resource file by Metrowerks, even if you change AppWannabe.68k back to type 'APPL'.
-
-
- That's all there is to it!! Have a party...
-
-
- Eric Soldan, Apple DTS
-